#include "StdAfx.h"
#include "LPModelDecVarFactor.h"

CLPModelDecVarFactor::CLPModelDecVarFactor(void)
	: m_iID(-1)
	, m_iIIndex(-1)
	, m_iJIndex(-1)
	, m_dILength(0)
	, m_dJWidth(0)
	, m_dOreWeight(0)
	, m_dRockWeight(0)
	, m_iSolutionValue(-1)
{
}

CLPModelDecVarFactor::~CLPModelDecVarFactor(void)
{
}

CLPModelDecVarFactor::CLPModelDecVarFactor(const CLPModelDecVarFactor& other)
{
	this->m_iID = other.m_iID;
	this->m_iIIndex = other.m_iIIndex;
	this->m_iJIndex = other.m_iJIndex;
	this->m_dILength = other.m_dILength;
	this->m_dJWidth = other.m_dJWidth;
	this->m_dOreWeight = other.m_dOreWeight;
	this->m_dRockWeight = other.m_dRockWeight;
	this->m_iSolutionValue = other.m_iSolutionValue;
	this->m_vdGrade = other.m_vdGrade;
	this->m_vRegionBlk = other.m_vRegionBlk;
}

CLPModelDecVarFactor& CLPModelDecVarFactor::operator =(const CLPModelDecVarFactor& other)
{
	if (this == &other)
		return *this;

	this->m_iID = other.m_iID;
	this->m_iIIndex = other.m_iIIndex;
	this->m_iJIndex = other.m_iJIndex;
	this->m_dILength = other.m_dILength;
	this->m_dJWidth = other.m_dJWidth;
	this->m_dOreWeight = other.m_dOreWeight;
	this->m_dRockWeight = other.m_dRockWeight;
	this->m_iSolutionValue = other.m_iSolutionValue;
	this->m_vdGrade = other.m_vdGrade;
	this->m_vRegionBlk = other.m_vRegionBlk;
	
	return *this;
}